﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lefter.ascx.cs" Inherits="BoCaiWeb.WebSite.UC.lefter" %>
<%@ Import Namespace="System.Linq" %>
<% 
    switch (CurrentNavType)
    {
        case NavigationType.About: 
            lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(1);
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/8.gif" width="230" height="59" alt="关于博才"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <% 
                foreach (var item in lanMuInfoList)
                {
            %>
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/lanmu.aspx?id=<%=item.Id%>"><%=item.Name%></a></strong>
                    </td>
                </tr>
            </table>
            <% 
                }        
            %>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.Server:
            lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(2);
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/81.gif" width="230" height="59" alt="客户服务"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <% 
                foreach (var item in lanMuInfoList)
                {
            %>
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/lanmu.aspx?id=<%=item.Id%>"><%=item.Name%></a></strong>
                    </td>
                </tr>
            </table>
            <%
                } 
            %>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.News:
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/82.gif" width="230" height="59" alt="资讯中心"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <% 
                var newClass = BoCaiWeb.WebSite.Code.Utility.GetNewsClass().Where(c => c.PId == 1);
                foreach (var item in newClass)
                {
                                            
            %>
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/newslist.aspx?id=<%=item.Id %>"><%=item.Name %></a></strong>
                    </td>
                </tr>
            </table>
            <%
                } 
            %>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.Job:
            lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(3);
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/83.gif" width="230" height="59" alt="猎头岗位"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <% 
                var jobClass = BoCaiWeb.WebSite.Code.Utility.GetNewsClass().Where(c => c.PId == 12);
                foreach (var item in jobClass)
                {
                                            
            %>
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/joblist.aspx?id=<%=item.Id %>"><%=item.Name %></a></strong>
                    </td>
                </tr>
            </table>
            <%
                } 
            %>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.Product:
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/84.gif" width="230" height="59" alt="成功案例"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/productlist.aspx">成功案例</a></strong>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.MyJob:
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/85.gif" width="230" height="59" alt="虚位以待"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/myjoblist.aspx">虚位以待</a></strong>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<%
            break;
        case NavigationType.Link:
            lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(4);
%>
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <img src="/images/86.gif" width="230" height="59" alt="联系我们"/>
        </td>
    </tr>
    <tr>
        <td height="335" align="center" valign="top" background="/images/9.gif">
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/message.aspx">给我留言</a></strong>
                    </td>
                </tr>
            </table>
            <% 
                foreach (var item in lanMuInfoList)
                {
            %>
            <table width="183" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center" background="/images/11.gif" style="padding-right: 20px;" class="left_dh">
                        <strong><a href="/lanmu.aspx?id=<%=item.Id%>"><%=item.Name%></a></strong>
                    </td>
                </tr>
            </table>
            <% 
                }        
            %>
        </td>
    </tr>
</table>
<%
            break;
    }    
%>